/**
 * BuildingTest.java
 * - Description Here -
 *
 * @author:  John Thomason
 *    Date:  Dec 5, 2008 / 10:30:27 PM
 *  Course:  CS222 - Java Programming II
 * Seminar:  5
 *  Assign:  Inheritance Questions
 */


/**
 * - Class Description -
 * BuildingTest Class
 */
public class BuildingTest {

  /**
   * Application Entry Point
   * @param args The command line arguments
   */
  public static void main(String[] args) {
    
  }//end main()

}//end BuildingTest class



/** Requirements

Described below are three classes, *Building*, *Hotel* and *Home* with
their respective attributes:

Building: no_of_floors, age , parking_space, size

   Hotel: number_of_guests, number_of_rooms, vacancy, no_of_floors, age,
          parking_space, size

    Home: No_of_bedrooms, no_of_occupants, finished_basement,
          no_of_floors, parking_space, age, size


1. Write a declaration for all three classes using the principles of
   inheritence. Make the Building class abstract


2. Which of the following statements is incorrect:

    a.      Hotel h = new Hotel();

    b.      Home m = new Home();

    c.*     Building b = new Building();


3.   Do Hotel and Building have an “Is A” relationship or “Has A”
     relationship? Is-A relationship.


4.   Which of the following is true:

      a.*  Hotel and Home are subclasses of Building

      b.   Hotel is a subclass of Building, Home is a subclass of Hotel.

      c.*  Home, Hotel and Building are independent classes

      d.   Hotel and Home are containment classes of Building


5.    If  Home were a subclass of Building,  how would you access the
      size attribute of Building:

      1. Hotel h = new Hotel();

               h.new Building();

               h.size = 5;


       2. Hotel h = new Hotel();

                h.Building.size = 5;


       3.*  Hotel h = new Hotel();

                h.size=5;

 */